home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / AIncludes / Lists.a < prev    next >
Text File  |  1996-05-01  |  9KB  |  450 lines

  1. ;
  2. ;    File:        Lists.a
  3. ;
  4. ;    Contains:    List Manager Interfaces.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Release:    Universal Interfaces 3.0d3 on Copland DR1
  8. ;
  9. ;    Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10. ;
  11. ;    Bugs?:        If you find a problem with this file, send the file and version
  12. ;                information (from above) and the problem description to:
  13. ;
  14. ;                    Internet:    apple.bugs@applelink.apple.com
  15. ;                    AppleLink:    APPLE.BUGS
  16. ;
  17. ;
  18.     IF &TYPE('__LISTS__') = 'UNDEFINED' THEN
  19. __LISTS__ SET 1
  20.  
  21.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  22.     include 'Types.a'
  23.     ENDIF
  24.     IF &TYPE('__CONTROLS__') = 'UNDEFINED' THEN
  25.     include 'Controls.a'
  26.     ENDIF
  27.     IF &TYPE('__MEMORY__') = 'UNDEFINED' THEN
  28.     include 'Memory.a'
  29.     ENDIF
  30.     IF FOR_SYSTEM7_AND_SYSTEM8_DEPRECATED THEN
  31. Cell                    RECORD 0
  32. f                         ds        Point
  33. sizeof                     EQU *                    ; size:   $4 (4)
  34.                         ENDR
  35.  
  36.  
  37. ListBounds                RECORD 0
  38. f                         ds        Rect
  39. sizeof                     EQU *                    ; size:   $8 (8)
  40.                         ENDR
  41.  
  42.  
  43. DataArray                RECORD 0
  44. elements                 ds.b    32001
  45.                          ORG 32002
  46. sizeof                     EQU *                    ; size:   $7D02 (32002)
  47.                         ENDR
  48.  
  49.  
  50. ListRec                    RECORD 0
  51. rView                     ds        Rect            ; offset: $0 (0)
  52. port                     ds.l    1                ; offset: $8 (8)
  53. indent                     ds        Point            ; offset: $C (12)
  54. cellSize                 ds        Point            ; offset: $10 (16)
  55. visible                     ds        ListBounds        ; offset: $14 (20)
  56. vScroll                     ds.l    1                ; offset: $1C (28)
  57. hScroll                     ds.l    1                ; offset: $20 (32)
  58. selFlags                 ds.b    1                ; offset: $24 (36)
  59. lActive                     ds.b    1                ; offset: $25 (37)
  60. lReserved                 ds.b    1                ; offset: $26 (38)
  61. listFlags                 ds.b    1                ; offset: $27 (39)
  62. clikTime                 ds.l    1                ; offset: $28 (40)
  63. clikLoc                     ds        Point            ; offset: $2C (44)
  64. mouseLoc                 ds        Point            ; offset: $30 (48)
  65. lClickLoop                 ds.l    1                ; offset: $34 (52)
  66. lastClick                 ds        Cell            ; offset: $38 (56)
  67. refCon                     ds.l    1                ; offset: $3C (60)
  68. listDefProc                 ds.l    1                ; offset: $40 (64)
  69. userHandle                 ds.l    1                ; offset: $44 (68)
  70. dataBounds                 ds        ListBounds        ; offset: $48 (72)
  71. cells                     ds.l    1                ; offset: $50 (80)
  72. maxIndex                 ds.w    1                ; offset: $54 (84)
  73. cellArray                 ds.w    1                ; offset: $56 (86) <-- really an array of length one
  74. sizeof                     EQU *                    ; size:   $58 (88)
  75.                         ENDR
  76. ; typedef struct ListRec *                ListPtr
  77.  
  78. ; typedef ListPtr *                        ListHandle
  79.  
  80. ; typedef ListHandle                     ListRef
  81.  
  82.  
  83. lDoVAutoscroll                    EQU        2
  84. lDoHAutoscroll                    EQU        1
  85. lOnlyOne                        EQU        -128
  86. lExtendDrag                        EQU        64
  87. lNoDisjoint                        EQU        32
  88. lNoExtend                        EQU        16
  89. lNoRect                            EQU        8
  90. lUseSense                        EQU        4
  91. lNoNilHilite                    EQU        2
  92.  
  93. lDoVAutoscrollBit                EQU        1
  94. lDoHAutoscrollBit                EQU        0
  95. lOnlyOneBit                        EQU        7
  96. lExtendDragBit                    EQU        6
  97. lNoDisjointBit                    EQU        5
  98. lNoExtendBit                    EQU        4
  99. lNoRectBit                        EQU        3
  100. lUseSenseBit                    EQU        2
  101. lNoNilHiliteBit                    EQU        1
  102.  
  103. lInitMsg                        EQU        0
  104. lDrawMsg                        EQU        1
  105. lHiliteMsg                        EQU        2
  106. lCloseMsg                        EQU        3
  107. ;
  108. ; pascal ListRef LNew(const Rect *rView, const ListBounds *dataBounds, Point cSize, short theProc, WindowRef theWindow, Boolean drawIt, Boolean hasGrow, Boolean scrollHoriz, Boolean scrollVert)
  109. ;
  110.     IF ¨ GENERATINGCFM THEN
  111.         Macro
  112.         _LNew
  113.             move.w              #$0044,-(sp)
  114.             dc.w                $A9E7
  115.         EndM
  116.     ELSE
  117.         IMPORT_CFM_FUNCTION LNew
  118.     ENDIF
  119.  
  120. ;
  121. ; pascal void LDispose(ListRef lHandle)
  122. ;
  123.     IF ¨ GENERATINGCFM THEN
  124.         Macro
  125.         _LDispose
  126.             move.w              #$0028,-(sp)
  127.             dc.w                $A9E7
  128.         EndM
  129.     ELSE
  130.         IMPORT_CFM_FUNCTION LDispose
  131.     ENDIF
  132.  
  133. ;
  134. ; pascal short LAddColumn(short count, short colNum, ListRef lHandle)
  135. ;
  136.     IF ¨ GENERATINGCFM THEN
  137.         Macro
  138.         _LAddColumn
  139.             move.w              #$0004,-(sp)
  140.             dc.w                $A9E7
  141.         EndM
  142.     ELSE
  143.         IMPORT_CFM_FUNCTION LAddColumn
  144.     ENDIF
  145.  
  146. ;
  147. ; pascal short LAddRow(short count, short rowNum, ListRef lHandle)
  148. ;
  149.     IF ¨ GENERATINGCFM THEN
  150.         Macro
  151.         _LAddRow
  152.             move.w              #$0008,-(sp)
  153.             dc.w                $A9E7
  154.         EndM
  155.     ELSE
  156.         IMPORT_CFM_FUNCTION LAddRow
  157.     ENDIF
  158.  
  159. ;
  160. ; pascal void LDelColumn(short count, short colNum, ListRef lHandle)
  161. ;
  162.     IF ¨ GENERATINGCFM THEN
  163.         Macro
  164.         _LDelColumn
  165.             move.w              #$0020,-(sp)
  166.             dc.w                $A9E7
  167.         EndM
  168.     ELSE
  169.         IMPORT_CFM_FUNCTION LDelColumn
  170.     ENDIF
  171.  
  172. ;
  173. ; pascal void LDelRow(short count, short rowNum, ListRef lHandle)
  174. ;
  175.     IF ¨ GENERATINGCFM THEN
  176.         Macro
  177.         _LDelRow
  178.             move.w              #$0024,-(sp)
  179.             dc.w                $A9E7
  180.         EndM
  181.     ELSE
  182.         IMPORT_CFM_FUNCTION LDelRow
  183.     ENDIF
  184.  
  185. ;
  186. ; pascal Boolean LGetSelect(Boolean next, Cell *theCell, ListRef lHandle)
  187. ;
  188.     IF ¨ GENERATINGCFM THEN
  189.         Macro
  190.         _LGetSelect
  191.             move.w              #$003C,-(sp)
  192.             dc.w                $A9E7
  193.         EndM
  194.     ELSE
  195.         IMPORT_CFM_FUNCTION LGetSelect
  196.     ENDIF
  197.  
  198. ;
  199. ; pascal Cell LLastClick(ListRef lHandle)
  200. ;
  201.     IF ¨ GENERATINGCFM THEN
  202.         Macro
  203.         _LLastClick
  204.             move.w              #$0040,-(sp)
  205.             dc.w                $A9E7
  206.         EndM
  207.     ELSE
  208.         IMPORT_CFM_FUNCTION LLastClick
  209.     ENDIF
  210.  
  211. ;
  212. ; pascal Boolean LNextCell(Boolean hNext, Boolean vNext, Cell *theCell, ListRef lHandle)
  213. ;
  214.     IF ¨ GENERATINGCFM THEN
  215.         Macro
  216.         _LNextCell
  217.             move.w              #$0048,-(sp)
  218.             dc.w                $A9E7
  219.         EndM
  220.     ELSE
  221.         IMPORT_CFM_FUNCTION LNextCell
  222.     ENDIF
  223.  
  224. ;
  225. ; pascal Boolean LSearch(const void *dataPtr, short dataLen, ListSearchUPP searchProc, Cell *theCell, ListRef lHandle)
  226. ;
  227.     IF ¨ GENERATINGCFM THEN
  228.         Macro
  229.         _LSearch
  230.             move.w              #$0054,-(sp)
  231.             dc.w                $A9E7
  232.         EndM
  233.     ELSE
  234.         IMPORT_CFM_FUNCTION LSearch
  235.     ENDIF
  236.  
  237. ;
  238. ; pascal void LSize(short listWidth, short listHeight, ListRef lHandle)
  239. ;
  240.     IF ¨ GENERATINGCFM THEN
  241.         Macro
  242.         _LSize
  243.             move.w              #$0060,-(sp)
  244.             dc.w                $A9E7
  245.         EndM
  246.     ELSE
  247.         IMPORT_CFM_FUNCTION LSize
  248.     ENDIF
  249.  
  250. ;
  251. ; pascal void LSetDrawingMode(Boolean drawIt, ListRef lHandle)
  252. ;
  253.     IF ¨ GENERATINGCFM THEN
  254.         Macro
  255.         _LSetDrawingMode
  256.             move.w              #$002C,-(sp)
  257.             dc.w                $A9E7
  258.         EndM
  259.     ELSE
  260.         IMPORT_CFM_FUNCTION LSetDrawingMode
  261.     ENDIF
  262.  
  263. ;
  264. ; pascal void LScroll(short dCols, short dRows, ListRef lHandle)
  265. ;
  266.     IF ¨ GENERATINGCFM THEN
  267.         Macro
  268.         _LScroll
  269.             move.w              #$0050,-(sp)
  270.             dc.w                $A9E7
  271.         EndM
  272.     ELSE
  273.         IMPORT_CFM_FUNCTION LScroll
  274.     ENDIF
  275.  
  276. ;
  277. ; pascal void LAutoScroll(ListRef lHandle)
  278. ;
  279.     IF ¨ GENERATINGCFM THEN
  280.         Macro
  281.         _LAutoScroll
  282.             move.w              #$0010,-(sp)
  283.             dc.w                $A9E7
  284.         EndM
  285.     ELSE
  286.         IMPORT_CFM_FUNCTION LAutoScroll
  287.     ENDIF
  288.  
  289. ;
  290. ; pascal void LUpdate(RgnHandle theRgn, ListRef lHandle)
  291. ;
  292.     IF ¨ GENERATINGCFM THEN
  293.         Macro
  294.         _LUpdate
  295.             move.w              #$0064,-(sp)
  296.             dc.w                $A9E7
  297.         EndM
  298.     ELSE
  299.         IMPORT_CFM_FUNCTION LUpdate
  300.     ENDIF
  301.  
  302. ;
  303. ; pascal void LActivate(Boolean act, ListRef lHandle)
  304. ;
  305.     IF ¨ GENERATINGCFM THEN
  306.         Macro
  307.         _LActivate
  308.             clr.w               -(sp)
  309.             dc.w                $A9E7
  310.         EndM
  311.     ELSE
  312.         IMPORT_CFM_FUNCTION LActivate
  313.     ENDIF
  314.  
  315. ;
  316. ; pascal void LCellSize(Point cSize, ListRef lHandle)
  317. ;
  318.     IF ¨ GENERATINGCFM THEN
  319.         Macro
  320.         _LCellSize
  321.             move.w              #$0014,-(sp)
  322.             dc.w                $A9E7
  323.         EndM
  324.     ELSE
  325.         IMPORT_CFM_FUNCTION LCellSize
  326.     ENDIF
  327.  
  328. ;
  329. ; pascal Boolean LClick(Point pt, short modifiers, ListRef lHandle)
  330. ;
  331.     IF ¨ GENERATINGCFM THEN
  332.         Macro
  333.         _LClick
  334.             move.w              #$0018,-(sp)
  335.             dc.w                $A9E7
  336.         EndM
  337.     ELSE
  338.         IMPORT_CFM_FUNCTION LClick
  339.     ENDIF
  340.  
  341. ;
  342. ; pascal void LAddToCell(const void *dataPtr, short dataLen, Cell theCell, ListRef lHandle)
  343. ;
  344.     IF ¨ GENERATINGCFM THEN
  345.         Macro
  346.         _LAddToCell
  347.             move.w              #$000C,-(sp)
  348.             dc.w                $A9E7
  349.         EndM
  350.     ELSE
  351.         IMPORT_CFM_FUNCTION LAddToCell
  352.     ENDIF
  353.  
  354. ;
  355. ; pascal void LClrCell(Cell theCell, ListRef lHandle)
  356. ;
  357.     IF ¨ GENERATINGCFM THEN
  358.         Macro
  359.         _LClrCell
  360.             move.w              #$001C,-(sp)
  361.             dc.w                $A9E7
  362.         EndM
  363.     ELSE
  364.         IMPORT_CFM_FUNCTION LClrCell
  365.     ENDIF
  366.  
  367. ;
  368. ; pascal void LGetCell(void *dataPtr, short *dataLen, Cell theCell, ListRef lHandle)
  369. ;
  370.     IF ¨ GENERATINGCFM THEN
  371.         Macro
  372.         _LGetCell
  373.             move.w              #$0038,-(sp)
  374.             dc.w                $A9E7
  375.         EndM
  376.     ELSE
  377.         IMPORT_CFM_FUNCTION LGetCell
  378.     ENDIF
  379.  
  380. ;
  381. ; pascal void LRect(Rect *cellRect, Cell theCell, ListRef lHandle)
  382. ;
  383.     IF ¨ GENERATINGCFM THEN
  384.         Macro
  385.         _LRect
  386.             move.w              #$004C,-(sp)
  387.             dc.w                $A9E7
  388.         EndM
  389.     ELSE
  390.         IMPORT_CFM_FUNCTION LRect
  391.     ENDIF
  392.  
  393. ;
  394. ; pascal void LSetCell(const void *dataPtr, short dataLen, Cell theCell, ListRef lHandle)
  395. ;
  396.     IF ¨ GENERATINGCFM THEN
  397.         Macro
  398.         _LSetCell
  399.             move.w              #$0058,-(sp)
  400.             dc.w                $A9E7
  401.         EndM
  402.     ELSE
  403.         IMPORT_CFM_FUNCTION LSetCell
  404.     ENDIF
  405.  
  406. ;
  407. ; pascal void LSetSelect(Boolean setIt, Cell theCell, ListRef lHandle)
  408. ;
  409.     IF ¨ GENERATINGCFM THEN
  410.         Macro
  411.         _LSetSelect
  412.             move.w              #$005C,-(sp)
  413.             dc.w                $A9E7
  414.         EndM
  415.     ELSE
  416.         IMPORT_CFM_FUNCTION LSetSelect
  417.     ENDIF
  418.  
  419. ;
  420. ; pascal void LDraw(Cell theCell, ListRef lHandle)
  421. ;
  422.     IF ¨ GENERATINGCFM THEN
  423.         Macro
  424.         _LDraw
  425.             move.w              #$0030,-(sp)
  426.             dc.w                $A9E7
  427.         EndM
  428.     ELSE
  429.         IMPORT_CFM_FUNCTION LDraw
  430.     ENDIF
  431.  
  432. ;
  433. ; pascal void LGetCellDataLocation(short *offset, short *len, Cell theCell, ListRef lHandle)
  434. ;
  435.     IF ¨ GENERATINGCFM THEN
  436.         Macro
  437.         _LGetCellDataLocation
  438.             move.w              #$0034,-(sp)
  439.             dc.w                $A9E7
  440.         EndM
  441.     ELSE
  442.         IMPORT_CFM_FUNCTION LGetCellDataLocation
  443.     ENDIF
  444.  
  445.     IF OLDROUTINENAMES THEN
  446.     ENDIF
  447.     ENDIF
  448.     ENDIF ; __LISTS__ 
  449.  
  450.